package com.cf.game.im.dao;

import com.cf.crud.mapper.BaseMapper;
import com.cf.game.im.model.HelloMsg;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * boot-game-HelloMsgMapper
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/7/31 下午 03:20
 */
@Mapper
public interface HelloMsgMapper extends BaseMapper<HelloMsg> {

    @Select("select * from helloMsg where userId=#{userId} ")
    List<HelloMsg> selectByUserId(@Param("userId") long sender);

}
